Skip to content

Conversation

@weichweich
Copy link

Building with cargo check -p opentelemetry --no-default-features fails since thiserror is optional.

Changes

Please provide a brief description of the changes here.

Merge requirement checklist

  • CONTRIBUTING guidelines followed
  • Unit tests added/updated (if applicable)
  • Appropriate CHANGELOG.md files updated for non-trivial, user-facing changes
  • Changes in public API reviewed (if applicable)

@weichweich weichweich requested a review from a team as a code owner December 10, 2024 14:39
@linux-foundation-easycla
Copy link

CLA Not Signed

@codecov
Copy link

codecov bot commented Dec 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.3%. Comparing base (902baa9) to head (b12a2c5).
Report is 7 commits behind head on main.

Additional details and impacted files
@@          Coverage Diff          @@
##            main   #2408   +/-   ##
=====================================
  Coverage   79.3%   79.3%           
=====================================
  Files        123     123           
  Lines      21566   21566           
=====================================
  Hits       17112   17112           
  Misses      4454    4454           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

futures-sink = { version = "0.3", optional = true }
pin-project-lite = { workspace = true, optional = true }
thiserror = { workspace = true, optional = true}
thiserror = { workspace = true }
Copy link
Member

@lalitb lalitb Dec 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We want to keep optional dependency on thiserror. As of now, it is supposed to be used only when trace feature flag is enabled. If that is not the case, we should fix it.

Copy link
Author

@weichweich weichweich Dec 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thiserror is used in opentelemetry::propagation. So it should be removed from there?

Copy link
Member

@lalitb lalitb Dec 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

propagators are only used in the context of traces. See if we can include it only if trace flag is enabled here -

pub mod propagation;

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and also, you need to sign the CLA in order for this to be merged :)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it's fine for you I would prefer to not sign the CLA and leave the fix to you? 😅 Thanks for getting back so quickly!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure. Thanks for the issue :)

@lalitb
Copy link
Member

lalitb commented Dec 11, 2024

closing this in favor of #2413

@lalitb lalitb closed this Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants